package sv.com.administrador.seguros.web.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;

import sv.com.administrador.seguros.dto.sgd.SgdUsuario;

public class CustomUser extends User implements UserDetails {

	private static final long serialVersionUID = 3668084416659011020L;
	private String fullName;
	private SgdUsuario sgdUsuario;

	public CustomUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired,
				credentialsNonExpired, accountNonLocked, authorities);
	}

	public SgdUsuario getSgdUsuario() {
		return sgdUsuario;
	}

	public void setSgdUsuario(SgdUsuario sgdUsuario) {
		this.sgdUsuario = sgdUsuario;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

}
